package com.day13.ex03;

public class ExceptionDemo {
    public static void main(String[] args) {
        System.out.println("main方法开始");
        method();
        System.out.println("main方法结束");
    }
    public static void method(){
        try{
            int[]arr={1,2,3};
            System.out.println(arr[3]);
            System.out.println("这里能够访问到吗");
        }catch(ArrayIndexOutOfBoundsException e){
           e.printStackTrace();
        }
    }
}
